#include "app_message.h"
#include "app_common.h"
#include <stdio.h>

int main(int argc, char const *argv[])
{
    char message[8] = { 0x01,0x02,0x03,0x6e,0x6e,0x41,0x42,0x43};
    char *json= app_message_bytes_to_json(message,8);
    printf(" json : %s\n",json);
    
    char msg_buff[100];
    int len= app_message_json_to_bytes(json, msg_buff,100);

    app_common_bytes_print(msg_buff,len);


    return 0;
}
